package com.ihai.spring.boot.sample.aop;

import com.ihai.spring.boot.sample.aop.service.HelloService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

/**
 * DESC
 *
 * @author 张驰
 * @date 2018/7/11
 */
@SpringBootApplication
public class AopApplication {
    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(AopApplication.class,args);
        applicationContext.getBean(HelloService.class).save("zhangsan");
    }
}
